package cn.apestar.common.chat.enums;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 环信消息类型
 */
public enum MessageWTType {
    PT("SYSTEM_MESSAGE", "系统消息"), // 普通
    LSYQ("TEACHER_INVITE", "老师邀请"), // 老师邀请
    CLASS_ROOM("CLASS_ROOM", "Care学堂"), // Care学堂
    FEEDBACK_IMAGE("FEEDBACK_IMAGE", "图文反馈"), // 图文反馈
    FEEDBACK_COMMENT("FEEDBACK_COMMENT", "评论反馈"), // 评论反馈
    JZYQ("PARENT_INVITE", "家长邀请"), // 家长邀请
    PENDING_MATTERS("PENDING_MATTERS", "待处理事项"), // 待处理事项通知信息
    RESUME_STATE("RESUME_STATE", "简历状态"), // 简历状态通知信息
    SEENME("SEENME", "谁看过我"); // SEENME

    private String value;

    private String name;

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    private MessageWTType(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getValue() {

        return value;
    }

    public static List getList() {

        List list = new ArrayList();
        MessageWTType[] values = MessageWTType.values();
        for (MessageWTType item : values) {
            Map map = new HashMap();
            map.put("code", item.getValue());
            map.put("label", item.getName());
            list.add(map);
        }
        return list;
    }
}
